package com.example.chengche_lol.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.chengche_lol.R;
import com.example.chengche_lol.beans.NewsCloudBean;

import org.jetbrains.annotations.NotNull;

public class NewsCloudAdapter extends BaseQuickAdapter<NewsCloudBean, BaseViewHolder> {

    public NewsCloudAdapter() {
        super(R.layout.item_cloud);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsCloudBean newsCloudBean) {
        baseViewHolder.setText(R.id.cl_title,newsCloudBean.getCl_title());
        baseViewHolder.setText(R.id.cl_name,newsCloudBean.getCl_name());
        baseViewHolder.setImageResource(R.id.cl_avatar,newsCloudBean.getCl_avatar());
    }
}
